<div class='_cut'></div>
<div class="_preview_div">
    <div class='box'>                
        <h3><?php echo $action['action_name'] ;?></h3> 
    </div>
    <div class='box'>                
        <img src="<?php echo $action['logo'];?>" style="width:100%;" id="_banner_"/>
        <br/>
    </div>
    <div class='_line'></div>
    <div class='box'>
        <span class='colors-size'><?php echo $action['intro'];?></span>
    </div>
    <div class='box'>
        <span class='colors'>活动日期:</span>
        <span class='colors-size'><?php echo date("Y年m月d日",$action['start_time']);?>&nbsp;至&nbsp;<?php echo date("Y年m月d日",$action['end_time']);?></span>
    </div>
    <div class='box'>
        <span class='colors'>联系人:</span>
        <span class='colors-size'><?php echo $store['person_charge'];?></span>
    </div>
    <div class='box'>
        <span class='colors'>tel:</span>
        <span class='colors-size'><?php echo $store['tel'];?></span>
    </div>
    <div class='box'>
        <img style='width:100%' src='http://apis.map.qq.com/ws/staticmap/v2/?center=<?php echo $store["latlng"];?>&zoom=13&size=600*300&maptype=roadmap&markers=size:large|color:0x4169e1|label:D|<?php echo $store["latlng"];?>&key=5LTBZ-Z6PC5-WAGIB-QXGAX-JBVBF-XQBTP'/>
    </div>
    <div class='box'>
        <span class='colors'>地址:</span>
        <span class='colors-size'><?php echo $store['address'];?></span>
    </div>
    <div class='box'>
        <div class='row'>
            <div class='col-sm-3 col-md-5'>
                <img src=''>
            </div>
            <div class='col-sm-3 col-md-5'>
                
            </div>
        </div>
    </div>
    <div style="height: 6rem"></div>
    <div class='box navbar-fixed-bottom' style="text-align: center;padding-left: 2rem">
        <?php if(strlen(trim($_GET['team_number']))>1){?>
        <button class="btn btn-primary btn-lg" id='_add' type="button" style="width:49%;background-color:#FF79BC;border-color:white">我要参团</button>
        <button class="btn btn-primary btn-lg" id='_new' type="button" style="width:49%;background-color:#FF79BC;border-color:white">我要开团</button>
        <?php }else{?>
        <button class="btn btn-primary btn-lg" id='_new' type="button" style="width:98%;background-color:#FF79BC;border-color:white">我要开团</button>
        <?php }?>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $("#_add").click(function(){
            window.location.href="<?php echo buildUrl('/user/order/createorder',(int)$_GET['barber_id']);?>&aid=<?php echo $action['id'];?>&team_number=<?php echo $_GET['team_number'];?>";
        });
        $("#_new").click(function(){
            window.location.href="<?php echo buildUrl('/user/order/createorder',(int)$_GET['barber_id']);?>&aid=<?php echo $action['id'];?>";
        });
    });
</script>